package com.wenhai.concurrency.thread.pool;

import java.util.concurrent.TimeUnit;

/**
 * @ClassName MyRunnable
 * @Description
 * @Author 谢文海
 * @Date 2021/4/26 0:20
 * @Version 1.0
 **/
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("begin：" + System.currentTimeMillis());
        try {
            TimeUnit.SECONDS.sleep(1);
            System.out.println("end：" + System.currentTimeMillis());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
